package com.jake.zyt.service;

import com.github.pagehelper.PageHelper;
import com.jake.zyt.constant.ParamConsts;
import com.jake.zyt.mapper.CountCardMapper;
import com.jake.zyt.vo.CountCardDetailVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountCardService {

    @Autowired
    private CountCardMapper countCardMapper;

    public List<CountCardDetailVO> countCardApply(String storeNumber, String keyword) {
        PageHelper.startPage(1, ParamConsts.PAGE_SIZE);
        return countCardMapper.countCardApply(storeNumber, keyword);
    }
}
